package com.assets.room.entity;

import androidx.room.ColumnInfo;
import androidx.room.Entity;
import androidx.room.Ignore;
import androidx.room.PrimaryKey;

import java.io.Serializable;
import java.util.Date;

/**
 * <p>
 * 员工信息表
 * </p>
 *
 * @author xyk
 * @since 2021-04-23
 */
@Entity(tableName = "t_info_worker")
public class Worker implements Serializable {

    private static final long serialVersionUID = 1L;

    /**
     * 员工id
     */
    @PrimaryKey(autoGenerate = true)
    @ColumnInfo(name = "worker_id")
    private Long workerId;

    /**
     * 姓名
     */
    @ColumnInfo(name = "name")
    private String name;

    /**
     * 性别（1：男 2：女）
     */
    @ColumnInfo(name = "sex")
    private String sex;

    /**
     * 电话
     */
    @ColumnInfo(name = "phone")
    private String phone;

    /**
     * 出生日期
     */
    @ColumnInfo(name = "birthday")
    private String birthday;

    /**
     * 邮箱
     */
    @ColumnInfo(name = "email")
    private String email;

    /**
     * 职位
     */
    @ColumnInfo(name = "post")
    private String post;

    /**
     * 部门
     */
    @ColumnInfo(name = "dept")
    private String dept;

    /**
     * 股室类型
     */
    @ColumnInfo(name = "division")
    private String division;

    /**
     * 入职时间
     */
    @ColumnInfo(name = "createtime")
    private String createtime;

    /**
     * 是否能登录
     */
    @ColumnInfo(name = "islogin")
    private String islogin;

    /**
     * 机构
     */
    @ColumnInfo(name = "company")
    private String company;

    /**
     * 创建人
     */
    @ColumnInfo(name = "createuser")
    private String createuser;

    @ColumnInfo(name = "is_flag")
    private String isFlag;

    @Ignore
    public Worker() {
    }

    public Worker(Long workerId, String name, String sex,
                  String phone, String birthday, String email,
                  String post, String dept, String division,
                  String createtime, String islogin,
                  String company, String createuser,
                  String isFlag) {
        this.workerId = workerId;
        this.name = name;
        this.sex = sex;
        this.phone = phone;
        this.birthday = birthday;
        this.email = email;
        this.post = post;
        this.dept = dept;
        this.division = division;
        this.createtime = createtime;
        this.islogin = islogin;
        this.company = company;
        this.createuser = createuser;
        this.isFlag = isFlag;
    }

    public Long getWorkerId() {
        return workerId;
    }

    public void setWorkerId(Long workerId) {
        this.workerId = workerId;
    }

    public String getName() {
        return name;
    }

    public void setName(String name) {
        this.name = name;
    }

    public String getSex() {
        return sex;
    }

    public void setSex(String sex) {
        this.sex = sex;
    }

    public String getPhone() {
        return phone;
    }

    public void setPhone(String phone) {
        this.phone = phone;
    }

    public String getBirthday() {
        return birthday;
    }

    public void setBirthday(String birthday) {
        this.birthday = birthday;
    }

    public String getEmail() {
        return email;
    }

    public void setEmail(String email) {
        this.email = email;
    }

    public String getPost() {
        return post;
    }

    public void setPost(String post) {
        this.post = post;
    }

    public String getDept() {
        return dept;
    }

    public void setDept(String dept) {
        this.dept = dept;
    }

    public String getDivision() {
        return division;
    }

    public void setDivision(String division) {
        this.division = division;
    }

    public String getCreatetime() {
        return createtime;
    }

    public void setCreatetime(String createtime) {
        this.createtime = createtime;
    }

    public String getIslogin() {
        return islogin;
    }

    public void setIslogin(String islogin) {
        this.islogin = islogin;
    }

    public String getCompany() {
        return company;
    }

    public void setCompany(String company) {
        this.company = company;
    }

    public String getCreateuser() {
        return createuser;
    }

    public void setCreateuser(String createuser) {
        this.createuser = createuser;
    }

    public String getIsFlag() {
        return isFlag;
    }

    public void setIsFlag(String isFlag) {
        this.isFlag = isFlag;
    }
}